package org.martin.snsrs.application;

import org.martin.snsrs.client.services.http.Api;
import org.martin.snsrs.client.services.http.SnsrsApi;

import android.app.Activity;
import android.app.Application;

public class ActivityApplication extends Application{
	
	private SnsrsApi snsrsApi;
	
	private Api api;
	
	private Activity lastActivity;
	
	public void onCreate(){
		api = new Api(getApplicationContext());
		snsrsApi = new SnsrsApi(api);
	}

	public SnsrsApi getSnsrsApi() {
		return snsrsApi;
	}

	public void setSnsrsApi(SnsrsApi snsrsApi) {
		this.snsrsApi = snsrsApi;
	}

	public Api getApi() {
		return api;
	}

	public void setApi(Api api) {
		this.api = api;
	}

	public Activity getLastActivity() {
		return lastActivity;
	}

	public void setLastActivity(Activity lastActivity) {
		this.lastActivity = lastActivity;
	}
}
